package top.gangster.lunan.userservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;
import javax.annotation.Resource;
import org.aspectj.lang.annotation.AdviceName;
import org.springframework.beans.factory.annotation.Autowired;
import top.gangster.lunan.userservice.entity.Auth;
import top.gangster.lunan.userservice.mapper.AuthMapper;
import top.gangster.lunan.userservice.service.AuthService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 权限表，权限数字越大权限越高 服务实现类
 * </p>
 *
 * @author vic
 * @since 2021-11-06
 */
@Service
public class AuthServiceImpl extends ServiceImpl<AuthMapper, Auth> implements AuthService {

  @Autowired
  AuthService authService;
  @Resource
  AuthMapper authMapper;

  /**
   * 列表查看Auth
   * @return List<Auth>
   */
  @Override
  public List<Auth> getAuthList(){
    QueryWrapper<Auth> qw = new QueryWrapper<>();
    return authService.list(qw);
  }

  /**
   * 列表查看auth_level
   * @return List<Auth>
   */
  @Override
  public List<Auth> getAuthLevelList(){
    return authMapper.selectAuthLevel();
  }


}
